home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / jcov.h < prev    next >
C/C++ Source or Header  |  1998-09-15  |  1KB  |  44 lines

  1. /*
  2.  * @(#)jcov.h    1.3 98/07/01
  3.  *
  4.  * Copyright 1996-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. /*
  16.  * Definitions for the Jcov    10/27/96
  17.  * @author Leonid Arbouzov 
  18.  * leo@nbsp.nsk.su 
  19.  */
  20.  
  21. #ifndef _JCOV_H_
  22. #define _JCOV_H_
  23.  
  24. extern char* testname;         /* Name of test */
  25. extern char* cov_file;        /* Name of code coverage file */
  26.  
  27. #define CT_METHOD         1
  28. #define CT_FIKT_METHOD      2 
  29. #define CT_BLOCK          3 
  30. #define CT_FIKT_RET      4 
  31. #define CT_CASE           5 
  32. #define CT_SWITH_WO_DEF      6 
  33. #define CT_BRANCH_TRUE      7 
  34. #define CT_BRANCH_FALSE      8 
  35.  
  36. extern void coverage_if(int flg, JavaFrame *frame, unsigned char *pc);
  37. extern void coverage_switch(JavaFrame *frame, unsigned char *pc, int key, int low, int high);
  38. extern void coverage_lookupswitch(JavaFrame *frame, unsigned char *pc, int npairs, int nodef);
  39.  
  40. extern void java_cov_dump();
  41. extern int  jcov_write_data(char *);
  42.  
  43. #endif /* ! _JCOV_H_ */
  44.